//
//  OAuthViewController.swift
//  WeiBo
//
//  Created by 史亚洲 on 16/1/15.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

class OAuthViewController: UIViewController {
    //属性webView
    let webView = UIWebView()
    
    
    //关闭页面
    @objc private func close(){
    
        
    //dismiss视图
    dismissViewControllerAnimated(true, completion: nil)
    
    }
    
    override func loadView() {
        //替换根视图webView
        view = webView
    }

    override func viewDidLoad() {
        super.viewDidLoad()
        setNavBar()

    }

    //设置导航条
    private func setNavBar() {
        self.navigationItem.leftBarButtonItem = UIBarButtonItem(title: "关闭", style: .Plain, target: self, action: "close")
    
    
    
    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

}
